package cn.icanci.mv.entity;

import java.util.Date;

/**
 * @Author: icanci
 * @ProjectName: kangaroo-orm
 * @PackageName: cn.icanci.mv.entity
 * @Date: Created in 2020/8/31 14:43
 * @ClassAction: Order 实体
 */
public class Order {
    private Integer id;
    private Integer ordno;
    private Integer total;
    private Date createDate;
    private Customer customer;

    public Order() {
    }

    public Order(Integer id, Integer ordno, Integer total, Date createDate, Customer customer) {
        this.id = id;
        this.ordno = ordno;
        this.total = total;
        this.createDate = createDate;
        this.customer = customer;
    }

    public Order(Integer ordno, Integer total, Date createDate, Customer customer) {
        this.ordno = ordno;
        this.total = total;
        this.createDate = createDate;
        this.customer = customer;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrdno() {
        return ordno;
    }

    public void setOrdno(Integer ordno) {
        this.ordno = ordno;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Order(Integer id, Integer ordno, Integer total, Date createDate) {
        this.id = id;
        this.ordno = ordno;
        this.total = total;
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Order{");
        sb.append("id=").append(id);
        sb.append(", ordno=").append(ordno);
        sb.append(", total=").append(total);
        sb.append(", createDate=").append(createDate);
        sb.append(", customer=").append(customer);
        sb.append('}');
        return sb.toString();
    }
}
